package com.msblearn.C_014;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class T04_CacheThreadPool {
    public static void main(String[] args) {
        ExecutorService service = Executors.newCachedThreadPool();
        System.out.println(service);
        for(int i=0;i<2;i++){
            service.execute(()->{
                System.out.println(Thread.currentThread().getName());
            });
        }


    }
}
